package org.lds.ers.client;

import java.util.List;

import org.lds.ers.client.model.StakeERSCInfo;
import org.lds.ers.client.model.StakeInfo;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("stake")
public interface StakeService extends RemoteService {
	StakeInfo insert(StakeInfo stake) ;
	Boolean update(StakeInfo stake) ;
	Boolean delete(Long id) ;
	List<StakeInfo> getAll();
	
	StakeERSCInfo insertERSC(StakeERSCInfo ersc);
	Boolean updateERSC(StakeERSCInfo stake) ;
	Boolean deleteERSC(Long id) ;
	List<StakeERSCInfo> getAllERSC(Long stakeID);
}